package com.example.helloworld;

import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.widget.TextView;

public class Main2Activity extends ActionBarActivity {
	TextView imie;
	TextView plec;
	TextView ocena;
	
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main2);
        
        imie = (TextView) findViewById(R.id.imie_wynik);
        plec = (TextView) findViewById(R.id.plec_wynik);
        ocena = (TextView) findViewById(R.id.ocena_wynik);
        
        Bundle bundle = getIntent().getExtras();
        imie.setText(bundle.getString("imie"));
        plec.setText(bundle.getString("plec"));
        ocena.setText(bundle.getFloat("ocena")+" gwiazdek");
    }
}
